import type { ApiRequest } from '@/types/apis.d'
import type { IManagerData } from '@/types/permission/manager'
import { request } from '../index'
export interface LoginRecordRequest {
  //登录记录
  'login.record': {
    limit: number
    offset: number
    sort?: string | undefined
    order?: number | undefined
    admin_id?: string | undefined
    time_start?: number | undefined
    time_end?: number | undefined
  }
}
//登录记录列表
export const list = (params?: ApiRequest['login.record']) =>
  request.get<'login.record', IManagerData[]>('v1/admin/login_records', params)
